package com.jy.service;

import com.jy.common.ServiceException;
import com.jy.model.Department;
import com.jy.model.Menu;
import com.jy.model.User;

import javax.servlet.http.HttpSession;
import java.text.ParseException;
import java.util.List;

public interface UserInfoService {
	/**
	 * @return
	 */
	 int insertTale();

    String getUser(User user,HttpSession session) throws ServiceException;

    String saveUser(User user);

    List<Department> getDepartment(String dept, String flag,String fatherId);

    List<User> searchUser(String searchUser);

    User getUserInfo(String token);


    void processActivate(String code, String mail) throws ServiceException, ParseException;

    void sendupdate(String mail);

    void modifyPwd(String mail, String code,String password) throws ServiceException;

    void validateReg(User user) throws ServiceException;
    List<Menu> menulist(String userid);
}
